package aop;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component
public class Eat {
    @Resource
    private int number;
    private void user(Person person){

        System.out.println(person.getName()+number);
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
